//
//  ST_UserCenterEmptyVideoView.swift
//  BTVideo
//
//  Created by DouLei on 2019/10/23.
//  Copyright © 2019 DouLei. All rights reserved.
//

import UIKit
import SwifterSwift
import SnapKit
import SwiftyAttributes
import SwiftyUserDefaults

class ST_UserCenterEmptyVideoView: UICollectionReusableView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.addSubview(content_label)
        content_label.snp.makeConstraints { (make) in
            make.edges.equalToSuperview().inset(UIEdgeInsets.init(top: 10, left: 15, bottom: 10, right: 50))
        }
        
        self.backgroundColor = UIColor.white
//        self.backgroundColor = UIColor.random
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    

    fileprivate lazy var content_label:UILabel = {
        let control = UILabel.init()
        control.textColor = Color.init(hexString: "#999999")
        control.numberOfLines = 0
        control.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.regular)
        control.text = "😆拍了视频才会有人喜欢你啊！"
        return control
    }()
    
//    MARK: - Bind Model
    var accid = ""{
        didSet{
            if Defaults[.currentUserID] == accid{
                content_label.text = "😆拍了视频才会有人喜欢你啊！"
            }else{
                content_label.text = "😳他/她还没有视频哦~"
            }
        }
    }
    
}
